package com.engine4cloud.tdf.admin.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "行政区划-响应对象")
public class AreaResultVO implements Serializable {
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "地区编码")
    private String code;

    @Schema(description = "地区名称")
    private String name;

    @Schema(description = "地区父编码")
    private String pcode;

    @Schema(description = "地区级别")
    private Integer lev;

    @Schema(description = "地区类型", example = "0:国家,1:省,2:城市,3:区县")
    private String areaType;

    @Schema(description = "areaId")
    private Long areaId;

    @Schema(description = "是否叶子节点，1-是，0-否", example = "0")
    private Boolean isLeaf;
}
